package com.ruitu.health_1.dao.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.ruitu.router_module.bean.user.Address;

import java.util.ArrayList;

public class StoreOrderItemList implements Parcelable {
    private String storeId;
    private String name;
    private String memberId;
    private String payAmount;
    private String status;
    private Address receiveAddress;
    private Order order;
    private String confirmStatus;

    private ArrayList<OrderItemList> orderItemList;
    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Address getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(Address receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(String payAmount) {
        this.payAmount = payAmount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getConfirmStatus() {
        return confirmStatus;
    }

    public void setConfirmStatus(String confirmStatus) {
        this.confirmStatus = confirmStatus;
    }

    public static Creator<StoreOrderItemList> getCREATOR() {
        return CREATOR;
    }

    public String getOrderStatus() {
        return confirmStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.confirmStatus = orderStatus;
    }

    protected StoreOrderItemList(Parcel in) {
        storeId = in.readString();
        name = in.readString();
    }

    public static final Creator<StoreOrderItemList> CREATOR = new Creator<StoreOrderItemList>() {
        @Override
        public StoreOrderItemList createFromParcel(Parcel in) {
            return new StoreOrderItemList(in);
        }

        @Override
        public StoreOrderItemList[] newArray(int size) {
            return new StoreOrderItemList[size];
        }
    };

    public ArrayList<OrderItemList> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(ArrayList<OrderItemList> orderItemList) {
        this.orderItemList = orderItemList;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(storeId);
        dest.writeString(name);
    }

    @Override
    public String toString() {
        return "StoreOrderItemList{" +
                "storeId='" + storeId + '\'' +
                ", name='" + name + '\'' +
                ", orderStatus='" + confirmStatus + '\'' +
                ", orderItemList=" + orderItemList +
                '}';
    }
}
